package com.example.demo.dao;

import com.example.demo.entity.HW;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface HWRepository extends JpaRepository<HW, Integer> {

    @Query(value = "select * from hw where hwno=:hwno", nativeQuery = true)
    HW findByHwno(@Param("hwno") String hwno);
}
